var dt_nav_tt = document.querySelector("#dt_nav_tt");

var dt_nav_tas = document.querySelector("#dt_nav_tas");

// 第一行
dt_nav_tt.addEventListener("mouseover",function () {
    // console.log("显示");
    dt_nav_tas.style.display = "block";
    dt_nav_tt.style.background="white";

})
dt_nav_tt.addEventListener("mouseleave",function () {
    // console.log("隐藏");
    dt_nav_tas.style.display = "none";
    dt_nav_tas.style.background="none";
    dt_nav_tt.style.background="none";
})
dt_nav_tas.addEventListener("mouseover",function () {
    // console.log("显示");
    dt_nav_tas.style.display = "block";
    dt_nav_tt.style.background="white";
})

dt_nav_tas.addEventListener("mouseleave",function () {
    // console.log("隐藏");
    dt_nav_tas.style.display = "none";
    dt_nav_tt.style.background="none";
})
                     //我的京东
var dt_nav_baz =document.querySelector("#dt_nav_baz");

var dt_nav_my =document.querySelector("#dt_nav_my");
dt_nav_baz.addEventListener("mouseover",function () {
    console.log("2");
    dt_nav_my.style.display = "block";
})
dt_nav_baz.addEventListener("mouseleave",function () {
    console.log("1");
    dt_nav_my.style.display = "none";
})
dt_nav_my.addEventListener("mouseover",function () {
    // console.log("离开了");
    dt_nav_my.style.display = "block";
})
dt_nav_my.addEventListener("mouseleave",function () {
    // console.log("离开了");
    dt_nav_my.style.display = "none";
})
                    //企业采购
var dt_nav_dtt =document.querySelector("#dt_nav_dtt");

var dt_nav_ner =document.querySelector("#dt_nav_ner");
dt_nav_dtt.addEventListener("mouseover",function () {
    // console.log("谁在上面");
    dt_nav_ner.style.display = "block";
})
dt_nav_dtt.addEventListener("mouseleave",function () {
    // console.log("离开了");
    dt_nav_ner.style.display = "none";
})
dt_nav_ner.addEventListener("mouseover",function () {
    // console.log("谁在上面");
    dt_nav_ner.style.display = "block";
})
dt_nav_ner.addEventListener("mouseleave",function () {
    // console.log("离开了");
    dt_nav_ner.style.display = "none";
})
                      //客户服务
var dt_nav_dte = document.querySelector("#dt_nav_dte");

var dt_nav_zz =document.querySelector("#dt_nav_zz");
dt_nav_dte.addEventListener("mouseover",function () {
    // console.log("谁在上面");
    dt_nav_zz.style.display = "block";
    dt_nav_dte.style.background="white";
})
dt_nav_dte.addEventListener("mouseleave",function () {
    // console.log("离开了");
    dt_nav_zz.style.display = "none";
    dt_nav_dte.style.background="none";
})
dt_nav_zz.addEventListener("mouseover",function () {
    // console.log("谁在上面");
    dt_nav_zz.style.display = "block";
    dt_nav_dte.style.background="white";
})
dt_nav_zz.addEventListener("mouseleave",function () {
    // console.log("离开了");
    dt_nav_zz.style.display = "none";
    dt_nav_dte.style.background="none";
})
                      //网站导航
var dt_nav_dao = document.querySelector("#dt_nav_dao");

var dt_nav_hang = document.querySelector("#dt_nav_hang");

dt_nav_dao.addEventListener("mouseover",function () {
    // console.log("在上面");
    dt_nav_hang.style.display ="block";
})
dt_nav_dao.addEventListener("mouseleave",function () {
    // console.log("离开了");
    dt_nav_hang.style.display = "none";
})
dt_nav_hang.addEventListener("mouseover",function () {
    // console.log("在上面");
    dt_nav_hang.style.display ="block";
})
dt_nav_hang.addEventListener("mouseleave",function () {
    // console.log("离开了");
    dt_nav_hang.style.display = "none";
})
                       //手机京东
var dt_nav_fuo = document.querySelector("#dt_nav_fuo");

var dt_nav_fer = document.querySelector("#dt_nav_fer");

dt_nav_fuo.addEventListener("mouseover",function () {
    // console.log("在上面");
    dt_nav_fer.style.display ="block";
})
dt_nav_fuo.addEventListener("mouseleave",function () {
    // console.log("离开了");
    dt_nav_fer.style.display = "none";
})
dt_nav_fer.addEventListener("mouseover",function () {
    // console.log("在上面");
    dt_nav_fer.style.display ="block";
})
dt_nav_fer.addEventListener("mouseleave",function () {
    // console.log("离开了");
    dt_nav_fer.style.display = "none";
})
                         //小购物车
var nav_not_fas = document.querySelector("#nav_not_fas");

var nav_not_get = document.querySelector("#nav_not_get");

nav_not_fas.addEventListener("mouseover",function () {
    console.log("122");
    nav_not_get.style.display= "block";
})
nav_not_get.addEventListener("mouseleave",function () {
    console.log("111");
    nav_not_get.style.display="none";
})

                         //中间轮播
var swiper = new Swiper('.swiper-container', {
    spaceBetween: 30,
    centeredSlides: true,
    autoplay: {
        delay: 2500,
        disableOnInteraction: false,
    },
    pagination: {
        el: '.swiper-pagination',
        clickable: true,
    },
    navigation: {
        nextEl: '.swiper-button-next',
        prevEl: '.swiper-button-prev',
    },
    loop:true
});
